From f97780c574f756d591d3a51e53688bff5000916a Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Sun, 30 Nov 2014 17:25:43 -0500 Subject: [PATCH] Don't use escapes in echo strings This forces us to fight with echo non-portability. Instead, just use ' instead of \". --- gtk/Makefile.am | 41 ++++++++++++++++++----------------------- 1 file changed, 18 insertions(+), 23 deletions(-) diff --git a/gtk/Makefile.am b/gtk/Makefile.am index dc54085fb6..3e88434d84 100644 --- a/gtk/Makefile.am +++ b/gtk/Makefile.am @@ -20,11 +20,6 @@ GTK_PRINT_PREVIEW_COMMAND="evince --unlink-tempfile --preview --print-settings % endif SUBDIRS = native . -if OS_DARWIN - ECHO="echo" -else - ECHO=echo -e -endif if HAVE_CLOUDPRINT if HAVE_PAPI_CUPS @@ -1174,49 +1169,49 @@ gtktypebuiltins.c: $(gtk_public_h_sources) $(a11y_h_sources) $(deprecated_h_sour && rm -f xgen-gtbc gtk.gresource.xml: Makefile.am - $(AM_V_GEN) $(ECHO) "" > $@; \ - $(ECHO) "" >> $@; \ - $(ECHO) " " >> $@; \ + $(AM_V_GEN) echo "" > $@; \ + echo "" >> $@; \ + echo " " >> $@; \ for f in $(srcdir)/theme/Raleigh/*.css; do \ n=`basename $$f`; \ - $(ECHO) " theme/Raleigh/$$n" >> $@; \ + echo " theme/Raleigh/$$n" >> $@; \ done; \ - $(ECHO) " theme/Adwaita/gtk.css" >> $@; \ - $(ECHO) " theme/Adwaita/gtk-dark.css" >> $@; \ - $(ECHO) " theme/Adwaita/gtk-contained.css" >> $@; \ - $(ECHO) " theme/Adwaita/gtk-contained-dark.css" >> $@; \ + echo " theme/Adwaita/gtk.css" >> $@; \ + echo " theme/Adwaita/gtk-dark.css" >> $@; \ + echo " theme/Adwaita/gtk-contained.css" >> $@; \ + echo " theme/Adwaita/gtk-contained-dark.css" >> $@; \ for f in $(srcdir)/theme/Adwaita/assets/*; do \ n=`basename $$f`; \ - $(ECHO) " theme/Adwaita/assets/$$n" >> $@; \ + echo " theme/Adwaita/assets/$$n" >> $@; \ done; \ - $(ECHO) " theme/HighContrast/gtk.css" >> $@; \ + echo " theme/HighContrast/gtk.css" >> $@; \ if test "$(win32_theme)" = "yes"; then \ for f in $(srcdir)/theme/win32/*.css; do \ n=`basename $$f`; \ - $(ECHO) " theme/win32/$$n" >> $@; \ + echo " theme/win32/$$n" >> $@; \ done; \ fi; \ for f in $(srcdir)/cursor/*.png; do \ n=`basename $$f`; \ - $(ECHO) " cursor/$$n" >> $@; \ + echo " cursor/$$n" >> $@; \ done; \ for f in $(srcdir)/ui/*.ui; do \ n=`basename $$f`; \ - $(ECHO) " ui/$$n" >> $@; \ + echo " ui/$$n" >> $@; \ done; \ for s in 16x16 22x22 24x24 32x32; do \ for f in $(srcdir)/icons/$$s/actions/*.png; do \ n=`basename $$f`; \ - $(ECHO) " icons/$$s/actions/$$n" >> $@; \ + echo " icons/$$s/actions/$$n" >> $@; \ done; \ done; \ for f in $(srcdir)/inspector/*.ui; do \ n=`basename $$f`; \ - $(ECHO) " inspector/$$n" >> $@; \ + echo " inspector/$$n" >> $@; \ done; \ - $(ECHO) " inspector/logo.png" >> $@; \ - $(ECHO) " " >> $@; \ - $(ECHO) "" >> $@; + echo " inspector/logo.png" >> $@; \ + echo " " >> $@; \ + echo "" >> $@; win32_theme_sources = \ theme/win32/gtk-win32.css \ -- 2.30.2